package com.zzzyh.forumsystemclient.dao;

import com.zzzyh.forumsystemclient.model.Feedback;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FeedbackMapper {
    int insert(Feedback row);

    int insertSelective(Feedback row);

    Feedback selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Feedback row);

    int updateByPrimaryKey(Feedback row);

    List<Feedback> getFeedbackList(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize
            , @Param("userId") Integer userId);

    Integer total(Integer id);
}